package onlinecalsys.server.model;

import java.rmi.RemoteException;
import java.util.ArrayList;

import onlinecalsys.server.objects.Appointment;

public interface ServerModel {
	
	boolean addAppointment(Appointment app);

	ArrayList<ArrayList<String>> getAppointments(String date, String username);

	boolean deleteAppointment(int appointmentId, String username);

	boolean usernameChecking(String username, String password);
	
	boolean saveNote(String note,String username);
	String getNote(String username);

	boolean shareAppointment(String username, int id, String shareWithUser) throws RemoteException;

	ArrayList<ArrayList<String>> getSharedAppointments(String username);

	boolean createNewUser(String username, String password);

}
